package com.lantosec.hmrp.modules.archives.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.core.mvc.BaseEntity;
import com.lantosec.hmrp.modules.archives.vo.UserEduVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * <p>
 * 教育信息表 实体类
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserEdu extends BaseEntity<UserEduVO> {

    private static final long serialVersionUID = 1L;
    public UserEdu(UserEduVO vo){
        this.userEduId = vo.getUserEduId();
        this.userId = vo.getUserId();
        this.startDate = vo.getStartDate();
        this.endDate = vo.getEndDate();
        this.gradSchool = vo.getGradSchool();
        this.speciality = vo.getSpeciality();
        this.education = vo.getEducation();
        this.degree = vo.getDegree();
        this.eduSystem = vo.getEduSystem();
        this.diplomaNo = vo.getDiplomaNo();
        this.diplomaPhotocopy = vo.getDiplomaPhotocopy();
        this.remark = vo.getRemark();
        this.createId = vo.getCreateId();
        this.createUser = vo.getCreateUser();
        this.createTime = vo.getCreateTime();
        this.verifyId = vo.getVerifyId();
        this.verifyUser = vo.getVerifyUser();
        this.verifyTime = vo.getVerifyTime();
        this.verifyStatus = vo.getVerifyStatus();
    }

    @Override
    public UserEduVO convertToVO(){
        return new UserEduVO(this);
    }


    /**
     * 主键ID
     */
    @TableId(value = "user_edu_id", type = IdType.ASSIGN_UUID)
    private String userEduId;

    /**
     * user主表ID
     */
    private String userId;

    /**
     * 入学时间
     */
    private String startDate;

    /**
     * 毕业时间
     */
    private String endDate;

    /**
     * 毕业学校
     */
    private String gradSchool;

    /**
     * 专业
     */
    private String speciality;

    /**
     * 学历，字典值
     */
    private String education;

    /**
     * 学位，字典值
     */
    private String degree;

    /**
     * 学制
     */
    private BigDecimal eduSystem;

    /**
     * 学位证书编号
     */
    private String diplomaNo;

    /**
     * 学位证书影印件
     */
    private String diplomaPhotocopy;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人ID
     */
    private String createId;

    /**
     * 创建人姓名
     */
    private String createUser;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 审核人ID
     */
    private String verifyId;

    /**
     * 审核人姓名
     */
    private String verifyUser;

    /**
     * 审核时间
     */
    private Date verifyTime;

    /**
     * 审核状态（0：未审核，1：以审核）
     */
    private Integer verifyStatus;


    public enum ColName {
        user_edu_id, user_id, start_date, end_date, grad_school, speciality, education, degree, edu_system, diploma_no, diploma_photocopy, remark, create_id, create_user, create_time, verify_id, verify_user, verify_time, verify_status, 
    }
}
